package com.sixdog.regulate.service;

import com.sixdog.regulate.bean.CmdResult;
import com.sixdog.regulate.cmdService.CmdUtils;
import com.sixdog.regulate.utils.RegexUtil;

import java.util.ArrayList;

public interface DeviceService {
    //获取所有设备序列号
    ArrayList<String> getDeviceSerials();
    //获取设备型号
    String getDeviceModel(String deviceSerial);
    //获取设备品牌
    String getDeviceBrand(String deviceSerial);
    //获取设备屏幕分辨率
    String getPhysicalSize(String deviceSerial);
    //获取设备屏幕dpi
    String getDeviceDpi(String deviceSerial);
    //获取设备安卓id
    String getAndroidId(String deviceSerial);
    //获取安卓版本
    String getAndroidVersion(String deviceSerial);
    //重启设备
    CmdResult rebootDevice(String deviceSerial);
    //关闭设备
    CmdResult shutDownDevice(String deviceSerial);
    //进入设备shell会话(暂时没用)
    CmdResult openDeviceShell(String deviceSerial);
    //获取自动调节亮度模式是否开启
    boolean getScreenBrightnessMode(String deviceSerial);
    //关闭或开启自动调节亮度模式
    CmdResult setScreenBrightnessMode(String deviceSerial,boolean state);
    //获取设备屏幕亮度(最大值并非100)
    int getScreenBrightness(String deviceSerial);
    //设置设备屏幕亮度(最大值并非100)
    CmdResult setScreenBrightness(String deviceSerial,int value);

}
